package com.tmt.im.service.controller.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;

/**
 * @Description TODO
 * @Author wuyi
 * @Date 2024/8/30 17:17
 * @Version 1.0
 **/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Tag(name = "群中禁言请求对象", description = "群中禁言请求对象")
public class ChatBannedRequest implements Serializable {

    @Serial
    private static final long serialVersionUID = 6466750017339955099L;

    @Schema(requiredMode = REQUIRED, description = "群组ID")
    @NotNull(message = "群组ID不允许为null")
    private Long tid;

    @Schema(requiredMode = REQUIRED, description = "是否禁言")
    @NotNull(message = "是否禁言标志不允许为null")
    private Boolean chatBanned;

    @Schema(requiredMode = REQUIRED, description = "禁言的群成员用户ID列表")
    @NotNull(message = "禁言的群成员用户ID列表不允许为null")
    @NotEmpty(message = "禁言的群成员用户ID列表不允许为空列表")
    private List<Long> memberIds;

}
